{extend name="PublicBase/showBase" /}

{block name="body"}
<div class="main">
    <div class="row">
        <div class="col-md-12">
            <section class="tile color transparent-black">
                <div class="tile-header bg-transparent-black-2">
                    <h1>
                        {if condition="$Info eq ''"}
                            {:lang('XtCyXz')}
                        {else /}
                            {:lang('XtCyGx')}
                        {/if}
                    </h1>
                    <div class="controls">
                        <a href="javascript:void(0);" onclick="window.history.back();"><i class="fa fa-arrow-left"></i></a>
                        {if condition="$Info eq ''"}
                            <a href="{:url('SystemMember/showAdd')}"><i class="fa fa-refresh"></i></a>
                        {else /}
                            <a href="{:url('SystemMember/showEdit', array('id'=>$Info['member_id']))}"><i class="fa fa-refresh"></i></a>
                        {/if}
                    </div>
                </div>
                <div class="tile-body nopadding">
                    <form class="FormTable" action="" method="post">
                        <div class="tile-body">
                            <div class="row">
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyFz')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="member_group">
                                        <option value="0">{:lang('XtCyFzWk')}</option>
                                        {volist name="Group" id="vo"}
                                            <option value="{$vo.group_id}" {eq name="Info['member_group']" value="$vo['group_id']"}selected{/eq}>{$vo.group_title}</option>
                                        {/volist}
                                    </select>
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyMc')}</label>
                                    <input type="text" class="form-control" name="member_name" value="{$Info.member_name}" placeholder="{:lang('XtCyMcWk')}" maxlength="5" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyZh')}</label>
                                    <input type="text" class="form-control" name="member_user" value="{$Info.member_user}" placeholder="{:lang('XtCyZhWk')}" maxlength="11" onkeyup="value=value.replace(/[\W]/g,'')" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyMm')}</label>
                                    <input type="password" class="form-control" name="member_pass" placeholder="{:lang('XtCyMmWk')}" maxlength="18" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyDh')}</label>
                                    <input type="text" class="form-control" name="member_mobile" value="{$Info.member_mobile}" placeholder="{:lang('XtCyDh')}" maxlength="11" onkeyup="value=value.replace(/[^\d]/g,'')" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyYx')}</label>
                                    <input type="text" class="form-control" name="member_email" value="{$Info.member_email}" placeholder="{:lang('XtCyYxWk')}" />
                                </div>
                                {neq name="Info" value=""}
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyDl')}</label>
                                    <input type="text" class="form-control" value="{$Info.member_login}" readonly="readonly" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyIp')}</label>
                                    <input type="text" class="form-control" value="{$Info.member_ip}" readonly="readonly" />
                                </div>
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyCs')}</label>
                                    <input type="text" class="form-control" value="{$Info.member_time}" readonly="readonly" />
                                </div>
                                {/neq}
                                <div class="form-group col-sm-12">
                                    <label>{:lang('XtCyZt')}</label>
                                    <select class="chosen-select chosen-transparent form-control" name="member_state">
                                        <option value="1" {eq name="Info['member_state']" value="1"}selected{/eq}>{:lang('XtCyZt1')}</option>
                                        <option value="2" {eq name="Info['member_state']" value="2"}selected{/eq}>{:lang('XtCyZt2')}</option>
                                    </select>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="tile-footer bg-transparent-black-2 rounded-bottom-corners">
                    <div class="row">
                        <div class="col-sm-12 text-center">
                            <button type="button" class="btn btn-{:config('CNF_BTNCOLOR')} ajax-post">{:lang('XtAnTj')}</button>
                        </div>
                    </div>
                </div>
            </section>
        </div>
    </div>
</div>
{/block}

{block name="script"}
    <script>
        $(function(){
            
        })
    </script>
{/block}
      
